package cn.lili.controller;

import cn.lili.common.vo.ResponseBean;
import cn.lili.modules.service.AppLabelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xiangqian
 * @date: 2024/3/8 9:21
 */
@RestController
@AllArgsConstructor
@Api(tags = "频道管理")
@RequestMapping("/videos")
public class AppLabelController {

    private AppLabelService appLabelService;

    @ApiModelProperty(value = "查询所有频道")
    @GetMapping("/label/getAll")
    public ResponseBean getAll() {
        return ResponseBean.success(appLabelService.getAll());
    }
}
